#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/philips_20240629.sql ./mysql/db
cp ../sql/philips_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../philips-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy philips-gateway "
cp ../philips-gateway/target/philips-gateway.jar ./philips/gateway/jar

echo "begin copy philips-auth "
cp ../philips-auth/target/philips-auth.jar ./philips/auth/jar

echo "begin copy philips-visual "
cp ../philips-visual/philips-monitor/target/philips-visual-monitor.jar  ./philips/visual/monitor/jar

echo "begin copy philips-modules-system "
cp ../philips-modules/philips-system/target/philips-modules-system.jar ./philips/modules/system/jar

echo "begin copy philips-modules-file "
cp ../philips-modules/philips-file/target/philips-modules-file.jar ./philips/modules/file/jar

echo "begin copy philips-modules-job "
cp ../philips-modules/philips-job/target/philips-modules-job.jar ./philips/modules/job/jar

echo "begin copy philips-modules-gen "
cp ../philips-modules/philips-gen/target/philips-modules-gen.jar ./philips/modules/gen/jar

